<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@include file="cabecera.jsp"%>
<%@page import="studio.negocio.SeguridadInstrumento,java.util.*" %>
<%@page import="studio.modelo.Instrumento" %>
<style type="text/css">
.class1 A:link {text-decoration: none}
.class1 A:visited {text-decoration: none}
.class1 A:active {text-decoration: none}
.class1 A:hover {text-decoration: none; color: red;}
.class1 A img{border: none;}


.class2 A:link {text-decoration: underline overline}
.class2 A:visited {text-decoration: underline overline}
.class2 A:active {text-decoration: underline overline}
.class2 A:hover {text-decoration: underline; color: green;}
</style>
  <% 
	SeguridadInstrumento negIntru = new SeguridadInstrumento();
    Collection<Instrumento> lstInstr = new ArrayList<Instrumento>();
    lstInstr=negIntru.ListarIntrume();
    request.setAttribute("ListadoInstru",lstInstr );
  %>
 <form name="LstInstru" method="post">
   <table>
   <tr>
   <th><font></font></th>
   <th><font class="labels">Tipo</font></th>
   <th><font class="labels">Marca</font></th>
   <th><font class="labels">Modelo</font></th>
   <th><font class="labels">Caracteristicas</font></th>
   </tr>
 <%
 for(Instrumento c:lstInstr){
	out.println("<tr><td><span class='class1'><a href='obtenerInstrum?id="+c.getIdInstrumento()+"'><img src='imagenes/edit.png' style='height: 20px; width: 20px;'/></a></span></td><td><font class='labels'>"+c.objTipIntru.getDescripcion()+"</font></td><td><font class='labels'>"+c.objmarca.getDescripcion()+"</font></td><td><font class='labels'>"+c.objModelo.getDescripcion()+"</font></td><td><font class='labels'>"+c.Caracteristicas+"</font></td></tr>");
}
 %>
   </table> 
    <span class="class1">
   <a href="RegistrarInstrumento.jsp?accion=n">Nuevo Instrumento</a></span>  
   </form> 
<%@include file="pie.jsp" %>